﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Comisiones.Models
{
    public class TarifaTipoTrans
    {
        //Llaves primarias y foraneas
        [Key, Column(Order = 0)]public int ttx_idTipo { get; set; }
        [Key, Column(Order = 1)]public int tar_idTarifario { get; set; }

        //atributos
        public double? ttt_precio { get; set; }
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string ttt_moneda { get; set; }
        public bool? ttt_tieneRango { get; set; }

        //objetos correspondientes a las llaves foraneas
        [ForeignKey("ttx_idTipo")]
        public TipoTransaccion tipoTransaccion { get; set; }
        [ForeignKey("tar_idTarifario")]
        public Tarifario tarifario { get; set; }
    }
}